package cn.vendai.com.assistant;


import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;


/**
 * 智能助手(测试版)
 * @author Eleven
 */
@AiService(wiringMode = EXPLICIT,
        chatModel = "qwenChatModel",
        contentRetriever = "contentRetrieverPincone")
public interface Assistant {
    @SystemMessage(fromResource = "prompts/system-prompt.txt")
    String chat(@UserMessage String userMessage);
}